Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 17cfffe5d16f438177ac91dd565335a8c2351076


Parents : 0cfc3b0
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-06-09T16:07:05+02:00

Fixed soundcard program name allocation in appimage builds

Changes

1 files changed, 2 insertions(+), 1 deletions(-)


Diff

diff --git a/LXST/Platforms/linux/soundcard.py b/LXST/Platforms/linux/soundcard.py
index d628e69..7f11123 100644
--- a/LXST/Platforms/linux/soundcard.py
+++ b/LXST/Platforms/linux/soundcard.py
@@ -147,7 +147,8 @@ class _PulseAudio:
import sys
prog_name = sys.argv[0]
if prog_name == "-c":
- return sys.argv[1][:30] + "..."
+ if len(sys.argv) > 1: return sys.argv[1][:30] + "..."
+ else: return f"lxst_application_{os.getpid()}"
if prog_name == "-m":
prog_name = sys.argv[1]
# Usually even with -m, sys.argv[0] will already be a path,


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────